package com.itboye.zhujia.homefragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.LinearLayout.LayoutParams;

import com.itboye.zhujia.R;
import com.itboye.zhujia.base.BaseOtherActivity;

public class HouseDetailActivity extends BaseOtherActivity{

	
	LinearLayout house_contnainer;
	TextView lijiqianyue,add_shap_title_tv;
	ImageView close_icon,img_setting,img_other;
	@Override
	protected int layout_id() {
		// TODO Auto-generated method stub
		return R.layout.activity_house_detail;
	}

	@Override
	protected void onInitController() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onInit() {
		// TODO Auto-generated method stub
		add_shap_title_tv.setText("找房");
		img_setting.setVisibility(View.VISIBLE);
		img_setting.setBackgroundResource(R.drawable.shezhi);
		img_other.setVisibility(View.VISIBLE);
		img_other.setBackgroundResource(R.drawable.shezhi);
		for (int i = 0; i < 10; i++) {
			View view=LayoutInflater.from(this).inflate(R.layout.item_tongxiaoqufangyuan, null);
			LayoutParams layoutParams=new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
			layoutParams.setMargins(10, 10, 10, 10);
			house_contnainer.addView(view);
			
		}
	}

	@Override
	protected void onReadIntent(Bundle bundle) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.lijiqianyue://立即签约
//			Intent intent=new Intent();
//			startActivity(intent)
			break;
		case R.id.close_icon:
			finish();
			break;

		default:
			break;
		}
	}

}
